#include "UiVPListPlayWnd.h"
#ifdef MERGER_APP_TO_SHELL
	extern HINSTANCE g_SDHResModuleHandle;
#endif
UiVPListPlayWnd::UiVPListPlayWnd()
{
}

UiVPListPlayWnd::~UiVPListPlayWnd()
{
}

BOOL UiVPListPlayWnd::InitUiWin(void)
{
	BOOL bRtn = FALSE;
	LoadiInterItem();
	return bRtn;
}

void UiVPListPlayWnd::PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate)
{
//	m_ControlWndBG->Draw(hdc, prcWin, false, false);
}

int UiVPListPlayWnd::OnLButtonDown(UINT fwKeys, int xPos, int yPos)
{
	return UiWin::OnLButtonDown(fwKeys, xPos, yPos);
}

int UiVPListPlayWnd::OnLButtonUp(UINT fwKeys, int xPos, int yPos)
{
	return UiWin::OnLButtonUp(fwKeys, xPos, yPos);
}

void UiVPListPlayWnd::LoadiInterItem()
{
//jdhuang 20120818
#ifndef MERGER_APP_TO_SHELL	
//	m_ControlWndBG = ImagingHelper::GetImageObject(MzGetInstanceHandle(), 1065);
#else
//	m_ControlWndBG = ImagingHelper::GetImageObject(g_SDHResModuleHandle, 3065);
#endif

	RECT rtPlayText = {55, 5, 290, 53};
	RECT rtPlayIcon = {10, 14, 40, 44};
//	m_PlayList.SetPos(395, 119, 405, 357);
	m_PlayList.SetPos(0, 0, 405, 367);
	m_PlayList.SetID(3500);
	m_PlayList.EnableScrollBarV(true);
	m_PlayList.EnableNotifyMessage(true);
	m_PlayList.SetItemHeight(58);
	m_PlayList.SetTextColor(RGB(255,0,0));
	m_PlayList.SetTextRect(&rtPlayText);
#ifndef MERGER_APP_TO_SHELL	
	m_PlayList.SetVideoLeftIconProperty(2026, &rtPlayIcon);
#else
	m_PlayList.SetVideoLeftIconProperty(7126, &rtPlayIcon);
#endif
	AddChild(&m_PlayList);
}

BOOL UiVPListPlayWnd::InitImages()
{
	return TRUE;
}
void UiVPListPlayWnd::DeleteImages()
{
}